var sequelizeService = require('../utils/sequelizeService');



sequelizeService.sequelize
    .sync()
    .then(function() {
        var User = sequelizeService.models.User;
        var user = [{
            alias: 'zfh',
            password: 'highgolp09zfh000',
            loginName: 'zfh',
            email: '282601718@qq.com'
        }];

        User.bulkCreate(user, { individualHooks: true })
            .then(function() {
                console.log('新增 %d 个用户', user.length);
            })
            .error(function(err) {
                console.error(err);
            })
    });
